<?php

/**
 * 前台专场控制器
 */
class SpecialController extends FrontBaseC {

    public function actionIndex() {      
        SeoWord::setWord($this, 'getCatSeo', 'sell_center');
        $this->layout = 'theme.views.layouts.FrontNoHeaderContent';
        $objCriteria = new CDBCriteria(array(
            'condition' => 'status = :status',
            'params' => array('status' => SpecialModel::STATUS_HAS),
            'order' => 'listorder DESC,id DESC',
        ));
        $model = ServiceModel::model();
        $dataqq = $model->frontCallData();
        $objModels = SpecialModel::model()->findAll($objCriteria);        
        $this->assign('models', $objModels);
        $this->assign('dataqq', $dataqq);
        $this->render('index');
    }

}
